package net.zhengxinyun.performance.mapper.setTime;

import net.zhengxinyun.performance.entity.SetTimeEntity;
import net.zhengxinyun.performance.filter.SetTimeFilter;
import org.apache.ibatis.annotations.Mapper;

@Mapper
public interface SetTimeEntityMapper {

    /**
     * 根据设置的类型查询
     * @param type
     * @return
     */
    SetTimeEntity selectByType(String type);


    /**
     * 新建设置时间段格式
     * @param filter
     * @return
     */
    int creatSetTime(SetTimeFilter filter);

    /**
     * 更新时间段设置
     * @param filter
     * @return
     */
    int updateSetTime(SetTimeFilter filter);
}

